import axios from 'axios'
import { loadConfig, appConfig } from '@/utils/config/globalConfig'
async function getConfig() {
  if (!appConfig.ENV || !appConfig.environments) {
    await loadConfig() // 确保 `globalConfig.json` 先加载
  }
  return appConfig.environments[appConfig.ENV]
}
const Config = await getConfig()

export default {
  title: Config.title,
  sideTheme: 'theme-dark',
  showSettings: true,
  topNav: false,
  tagsView: true,
  fixedHeader: true,
  sidebarLogo: true,
  dynamicTitle: false,
  errorLog: 'production',
}
